﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_TOOL.DBAccess;

namespace ERP_RORZE_PRODUCT.Product.WTS
{
    public partial class frm_CheckStaffTime : DevExpress.XtraEditors.XtraForm
    {
        private DataTable dt;
        public frm_CheckStaffTime(int number)
        {
            InitializeComponent();
            BindDatatoGridCheckTime(number);
        }

        private void BindDatatoGridCheckTime(int range)
        {
            Cursor.Current = Cursors.WaitCursor;
            gridView1.Columns.Clear();
            dt = BaseDAO.ExecuteQuery("Sp_242_Rpt_CheckTGNV " + range.ToString());
            gridControl1.DataSource = dt;
            gridView1.BestFitColumns();
            Cursor.Current = Cursors.Default;

        }
    }
}